//******************************************************************************
//  _____                  _    _             __
// |  _  |                | |  | |           / _|
// | | | |_ __   ___ _ __ | |  | | __ _ _ __| |_ __ _ _ __ ___
// | | | | '_ \ / _ \ '_ \| |/\| |/ _` | '__|  _/ _` | '__/ _ \
// \ \_/ / |_) |  __/ | | \  /\  / (_| | |  | || (_| | | |  __/
//  \___/| .__/ \___|_| |_|\/  \/ \__,_|_|  |_| \__,_|_|  \___|
//       | |               We don't make the game you play.
//       |_|                 We make the game you play BETTER.
//
//            Website: http://openwarfaremod.com/
//******************************************************************************
// HEALTH SYSTEM OPTIONS
// ALL VARIABLES WORK IN RANKED AND UNRANKED MODES
//******************************************************************************
// PLEASE REMEMBER TO UNCOMMENT THE LINES BY REMOVING THE DOUBLE SLASHES (//)
// WHEN CHANGING A VALUE. PLEASE DO NOT UNCOMMENT LINES setModDVar("TO DEFAULT VALUES.
//******************************************************************************

#include openwarfare\_utils;

init() {
printDebugLine( "configs\gameplay\healthsystem::init()" );
// Player's health 
// Allowed values: 1-500
// Default for non-hardcore: 100
// Default for hardcore: 30
// Default for odlschool: 200
setModDVar("scr_player_maxhealth", "100");

// controls the health regeneration method to use during the game when a player takes damage.
// 0 = Disabled
// 1 = Stock method (default): The player doesn't regenerate the health until certain time has passed. 
//     Once this time has passed the player's health is fully regenerated in one chunk.
// 2 = OpenWarfare method: The health regeneration is much more progressive taking into account the 
//     amount to regenerate a complete life and the damage taken.
setModDVar("scr_healthregen_method", "0");

// Time to regenerate 100% of the player's health
// Allowed values: 0-120 (default is 5)
// setModDVar("scr_player_healthregentime", "5");

// Plays a pain sound when the player takes damage
// 0 = Disabled (default), 1-10 = Chance of the player to make a sound (the higher the number the lower the chance)
setModDVar("scr_health_pain_sound", "3");

// Plays a sound whenever the player dies
// 0 = Disabled (default), 1 = Enabled
setModDVar("scr_health_death_sound", "1");

// Plays breathing sounds whenever a player has taken damage and the player's health is not full
// 0 = Disabled, 1 = Enabled (default)
setModDVar("scr_health_hurt_sound", "1");

// Displays a health bar on screen showing the player's current health
// 0 = Disabled (default), 1 = Enabled
// setModDVar("scr_healthsystem_show_healthbar", "1");


//******************************************************************************
//  BLEEDING OPTIONS
//******************************************************************************
// Controls whether players will bleed when taken damage (damage from falls do not cause bleeding).
// The higher the setting the slower a player bleeds.
// 0 = Disabled (default), 0.1-15 = Enabled (bleeding rate in miliseconds)
setModDVar("scr_healthsystem_bleeding_enable", "10");

// Percent of health a player must lose before bleeding begins when bleeding is enabled.
// 0 = Player will start bleeding when damaged (default)
// 1-99 = Percent of health 
setModDVar("scr_healthsystem_bleeding_percentage", "0");

// Displays a bleeding icon in the middle of the screen when player is bleeding
// 0 = Disabled, 1 = Enabled (default)
setModDVar("scr_healthsystem_bleeding_icon", "1");


//******************************************************************************
// BANDAGING OPTIONS
//******************************************************************************
// Sets the starting amount of bandages for a player when players can bandage themselves
// or bandage a teammate (medic role)
// Allowed values: 1-5 (default is 3)
setModDVar("scr_healthsystem_bandage_start", "3");

// Sets the max amount of bandages a player can carry as the players will be able to pick
// bandages from health packs (when enabled)
// Allowed values: 1-5 (default is 5)
setModDVar("scr_healthsystem_bandage_max", "5");

// Allows player to bandage self when bleeding (stop bleeding does not heal)
// 0 = Disabled, 1 = Enabled (default)
setModDVar("scr_healthsystem_bandage_self", "1");

// Sets the amount of time (seconds) it takes for a player to fully bandage
// Allowed values: 2-10 (default is 3)
setModDVar("scr_healthsystem_bandage_time", "2");


//******************************************************************************
// MEDIC OPTIONS
//******************************************************************************
// Enables the medic role (allows healing self, teammate and/or bandaging teammate)
// 0 = Disabled (default), 1 = Enabled
// setModDVar("scr_healthsystem_medic_enable", "1");

// Allows player to bandage teammate if teammate is bleeding
// 0 = Disabled, 1 = Enabled (default)
// setModDVar("scr_healthsystem_medic_bandaging", "1")

// Allows player to heal teammate if teammate's health is below max health
// 0 = Disabled, 1 = Enabled (default)
// setModDVar("scr_healthsystem_medic_healing", "1");

// Allows player to heal self if player's health is below max health
// 0 = Disabled, 1 = Enabled (default)
// setModDVar("scr_healthsystem_medic_healing_self", "1");

// Sets the amount of health one bandage can give a player on a full heal
// Allowed values: 1-scr_player_maxhealth (default is 25)
// setModDVar("scr_healthsystem_medic_healing_health", "25");

// Sets the amount of time (seconds) it takes to fully heal player. Players can 
// stop the process early to partially heal but will still lose bandage.
// Allowed values: 2-10 (default is 3)
// setModDVar("scr_healthsystem_medic_healing_time", "3");

// Allows a player to use a bandage from a teammate to heal or bandage the teammate
// if he has no bandages. This is great if players can not heal or bandage themselves.
// 0 = Disabled (default), 1 = Enabled
// setModDVar("scr_healthsystem_medic_take_bandage", "0");

// Displays the bandaging/healing icon when player is bandaging or healing
// 0 = Disabled, 1 = Enabled (default)
// setModDVar("scr_healthsystem_healing_icon", "1");


//******************************************************************************
// HEALTH PACK OPTIONS
//******************************************************************************
// Enables health packs. Health packs are dropped when a player dies.
// 0 = Disabled (default), 1 = Enabled, 2 = Enabled (healthpacks glow)
// setModDVar("scr_healthsystem_healthpacks_enable", "2");

// Sets how long (in seconds) a health pack will stay in the map before disappearing
// Allowed values: 30-300 (default is 60)
// setModDVar("scr_healthsystem_healthpacks_timeout", "60");

// Sets the amount of health one health pack will give a player when picked up
// Allowed values: 1-scr_player_maxhealth (default is 25)
// setModDVar("scr_healthsystem_healthpacks_health", "25");

// If enabled, selects a random amount of health between 1 and the amount set
// by scr_healthsystem_healthpacks_health to add to the players health.
// 0 = Disabled (default), 1 = Enabled
// setModDVar("scr_healthsystem_healthpacks_random_health", "0");


}